import 'package:flutter/cupertino.dart';

/// 控件初始化参数
class AmapNaviOptions {
  //是否开启交通播报
  bool trafficInfoUpdateEnabled;

  AmapNaviOptions({
    @required this.trafficInfoUpdateEnabled,
    // this.myLocationButtonEnabled = false,
  });

  static AmapNaviOptions fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    AmapNaviOptions amapOptionsBean = AmapNaviOptions(trafficInfoUpdateEnabled: false);
    amapOptionsBean.trafficInfoUpdateEnabled = map['trafficInfoUpdateEnabled'];
    return amapOptionsBean;
  }

  Map toJson() => {
        "trafficInfoUpdateEnabled": trafficInfoUpdateEnabled,
      };
}
